﻿using System;
using System.Diagnostics;

namespace MockingBird.Common.Infrastructure.Logging
{
    public class NullLogger : LoggerBase
    {
        #region ILogger Members

        public override void LogRequestReceived(string endpointUrl)
        {
            Trace.WriteLine("REQUEST RECEIVED FOR ENDPOINT: " + endpointUrl);

        }

        public override void Log(string message)
        {
            Trace.WriteLine(message);
        }

        public override void LogInfo(string message)
        {
            Trace.WriteLine(message);
        }

        public override void LogWarning(string message)
        {
            Trace.WriteLine(message);
        }

        public override void LogError(string message, Exception ex)
        {
            Trace.WriteLine(message + Environment.NewLine + ex.ToString());
        }

        public override void LogFatal(string message, Exception ex)
        {
            Trace.WriteLine(message + Environment.NewLine + ex.ToString());
        }

        #endregion
    }
}
